package com.learning.spring.cloud.ms.provider.user;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;

/**
 * ClassName: MsProviderUserApplication
 * Description:
 * Date: 2019/5/31 10:42 【需求编号】
 * <p>
 * 1. 在以前的版，注册到注册中心需要添加 @EnableEurekaClient或者@EnableDiscoveryClient
 * 2. Edgware 版本开始不需要，原因在使得环境开发更加灵活。
 * 3. 手动取消注册（二者取一）
 * - @EnableDiscoveryClient(autoRegister = false)
 * - spring.cloud.service-registry.auto-registration.enabled=false
 *
 * @author Sam Sho
 * @version V1.0.0
 */
//@EnableDiscoveryClient(autoRegister = false)
@EnableEurekaClient
@SpringBootApplication
public class MsProviderUserApplication {

    public static void main(String[] args) {
        SpringApplication.run(MsProviderUserApplication.class, args);
    }

}
